/*
 *------------------------------------------------------------------------------
 * @File      :    ei_mai_nna.h
 * @Date      :    2021-4-8
 * @Author    :    lomboswer <lomboswer@lombotech.com>
 * @Brief     :    Media InterLICPLATE for MADP(Media Development Platform).
 *
 * Copyright (C) 2020-2021, LomboTech Co.Ltd. All rights reserved.
 *------------------------------------------------------------------------------
 */

#ifndef __EI_NNA_LICPLATE_DET_DEFINE_H__
#define __EI_NNA_LICPLATE_DET_DEFINE_H__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "ei_nna_define.h"

#define DEFAULT_NNA_LICPLATE_DET_CONFIG_MAX_DET_CNT (30)
#define DEFAULT_NNA_LICPLATE_DET_CONFIG_IOU_THRESH (40)
#define DEFAULT_NNA_LICPLATE_DET_CONFIG_CONF_THRESH (1)
#define DEFAULT_NNA_LICPLATE_DET_CONFIG_DET_MODE (EZAX_LIC_PLATE_DET_MODE_UP)

typedef struct eiNNA_LICPLATE_S {
    EI_S32 s32Class;
	EI_S32 s32Rect[4];
	EI_FLOAT f32Score;
	EI_FLOAT f32Kpts[8];
} EI_NNA_LICPLATE_S;


typedef struct eiNNA_LICPLATES_S {
	EI_U32 u32Num;
	EI_NNA_LICPLATE_S stLicplatesRect[DEFAULT_NNA_LICPLATE_DET_CONFIG_MAX_DET_CNT];
} EI_NNA_LICPLATES_S;

typedef struct eiNNA_LPD_DET_CONFIG_S {
	EI_CHAR *ModelRootPath;

	EI_S32 s32Width;
	EI_S32 s32Height;
	EI_S32 s32MaxDetCnt;
	EI_S32 s32IouThresh;
	EI_S32 s32ConfThresh;
	EI_S32 s32DetMode; //auto config

	EI_NNA_AX_FREQ_S stFreq;
} EI_NNA_LICPLATE_DET_CONFIG_S;

typedef EI_S32 NNA_LPD_CHN;
typedef EI_NNA_LICPLATES_S EI_NNA_DST_LPD_S;
typedef EI_NNA_LICPLATE_S EI_NNA_DST_LPR_S;
typedef EI_NNA_LICPLATE_S EI_NNA_SRC_LPR_S;
typedef EI_NNA_LICPLATE_DET_CONFIG_S EI_NNA_LPD_CONFIG_S;

#ifdef __cplusplus
}

#endif
#endif